<script setup lang="ts">
import {useCounterStore} from "@/stores/counter";

const store = useCounterStore()
</script>
<template>
  <h3>组件 @/components/my.vue操作count</h3>
  <p>{{ store.count }}</p>
  <button @click="store.add(3)">add(+=3)</button>
</template>
